package com.devunion.bogdan.view.util;

import java.util.*;
/**
 * User: leska
 * Date: 06.11.2004
 * Time: 23:14:14
 */
public class i18n {
    static ResourceBundle messages;

    static {
        try {
            messages = ResourceBundle.getBundle("MessagesBundle", Locale.getDefault());
        } catch (Exception e) {
            System.err.println("MessagesBundle.properties not found");
        }
    }

    public static String getString(String str){
        try{
            return messages.getString(str);
        } catch(Exception x){
            return "Translation for: \"" + str + "\" is missing.";
        }
    }

}
